home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / lib / udev / rules.d / 80-drivers.rules < prev    next >
Encoding:
Text File  |  2010-12-12  |  2.2 KB  |  59 lines

  1. ACTION=="remove", GOTO="drivers_end"
  2.  
  3. # check if the device has already been claimed by a driver
  4. ENV{DRIVER}=="?*", SUBSYSTEM!="input", GOTO="hotplug_driver_loaded"
  5.  
  6. # load the drivers
  7. ENV{MODALIAS}=="?*",            RUN+="/sbin/modprobe -b $env{MODALIAS}"
  8.  
  9. # workaround for kernels < 2.6.27-rc5
  10. SUBSYSTEM=="pnp",    ENV{MODALIAS}!="?*", \
  11.     RUN+="/bin/sh -c '/sbin/modprobe --use-blacklist --all $$(while read id; do echo pnp:d$$id; done < /sys$devpath/id)'"
  12.  
  13. SUBSYSTEM=="pcmcia_socket",        RUN+="/sbin/modprobe -b pcmcia"
  14.  
  15. # rules for subsystems which lack proper hotplug support
  16. SUBSYSTEM=="i2o",            RUN+="/sbin/modprobe -b i2o_block"
  17. # workaround for kernels < 2.6.30
  18. SUBSYSTEM=="mmc",            RUN+="/sbin/modprobe -b mmc_block"
  19. SUBSYSTEM=="memstick",    RUN+="/sbin/modprobe -b --all ms_block mspro_block"
  20. SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="SD", \
  21.                     RUN+="/sbin/modprobe -b tifm_sd"
  22. SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="MS", \
  23.                     RUN+="/sbin/modprobe -b tifm_ms"
  24.  
  25. SUBSYSTEM=="scsi_device", ATTRS{type}=="[235689]", TEST!="[module/sg]", \
  26.                     RUN+="/sbin/modprobe -b sg"
  27.  
  28. SUBSYSTEM=="ide", ATTR{media}=="tape",    RUN+="/sbin/modprobe -b ide-scsi"
  29.  
  30. # Load VIO modules based on the device type
  31. SUBSYSTEM!="vio", GOTO="hotplug_vio_end"
  32. ENV{MODALIAS}=="?*", GOTO="hotplug_vio_end"
  33. ENV{VIO_TYPE}!="?*", IMPORT{program}="vio_type --export $devpath"
  34. ENV{VIO_TYPE}=="serial",        RUN+="/sbin/modprobe -b hvc_console"
  35. ENV{VIO_TYPE}=="serial-server",        RUN+="/sbin/modprobe -b hvcs"
  36. ENV{VIO_TYPE}=="network",        RUN+="/sbin/modprobe -b ibmveth"
  37. ENV{VIO_TYPE}=="vscsi",            RUN+="/sbin/modprobe -b ibmvscsic"
  38. ENV{VIO_TYPE}=="vlan",            RUN+="/sbin/modprobe -b iseries_veth"
  39. ENV{VIO_TYPE}=="viodasd",        RUN+="/sbin/modprobe -b viodasd"
  40. ENV{VIO_TYPE}=="viocd",            RUN+="/sbin/modprobe -b viocd"
  41. ENV{VIO_TYPE}=="vnet",            RUN+="/sbin/modprobe -b sunvnet"
  42. ENV{VIO_TYPE}=="vdisk",            RUN+="/sbin/modprobe -b sunvdc"
  43. LABEL="hotplug_vio_end"
  44.  
  45. # From here on follows the hotplug agents which do not load modules
  46. LABEL="hotplug_driver_loaded"
  47.  
  48. SUBSYSTEM=="firmware",            RUN+="firmware.agent"
  49.  
  50. LABEL="drivers_end"
  51.  
  52. SUBSYSTEM=="net",            RUN+="net.agent"
  53.  
  54. SUBSYSTEM=="atm",            RUN+="dsl-modem.agent"
  55.  
  56. # Log every event to /dev/hotplug.log (for debugging).
  57. #SUBSYSTEM!="uids",            RUN+="logger.agent"
  58.  
  59.